# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=fraud-bridge
pkgver=36.88a5baa
pkgrel=2
groups=('blackarch' 'blackarch-tunnel' 'blackarch-networking')
pkgdesc='ICMP and DNS tunneling via IPv4 and IPv6.'
arch=('x86_64' 'aarch64')
depends=('libgcrypt')
makedepends=('git')
url='https://github.com/stealth/fraud-bridge'
license=('GPL3')
source=("git+https://github.com/stealth/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README
  install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

